package cn.jari.erp.inventory.repositories.primary;

import static javax.persistence.LockModeType.*;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.jpa.repository.*;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Page;
import reactor.core.publisher.Flux;
import cn.jari.erp.inventory.dto.*;
import java.util.List;
/*
 * 警告：代码由鲲舟平台生成，请勿手动修改。
 * Warn: This class file is generated by JARI-ACE platform, please do not modify manually。
 */

/**
 * InventoryCategory的Spring Data Repository基础接口
 *
 * @author JARI-ACE
 */
@NoRepositoryBean
interface BaseInventoryCategoryRepository {
    /**
     * 根据名称获取
     *
     * @param name 名称
     * @return {@link InventoryCategoryReference}
     */
    @Query("""
        select new cn.jari.erp.inventory.dto.InventoryCategoryReference(a.dataVersion, a.id, a.releaseSource, a.sourceId) from InventoryCategory a
    """)
    InventoryCategoryReference getByName(String name);
}